package notice

type NoticeConfig struct {
	Notice Notice `toml:"notice"`
}

type Notice struct {
	SmsConfig    SmsConfig    `toml:"sms"`
	EdmConfig    EdmConfig    `toml:"edm"`
	WeiXinConfig WeiXinConfig `toml:"weixin"`
}

type SmsConfig struct {
	User     string `toml:"user"`
	Password string `toml:"password"`
	Addr     string `toml:"addr"`
	Channel  string `toml:"channle"`
	Interval int    `toml:"interval"`
}

type EdmConfig struct {
	User     string `toml:"user"`
	Password string `toml:"password"`
	Addr     string `toml:"addr"`
	Interval int    `toml:"interval"`
}

type WeiXinConfig struct {
	User     string `toml:"user"`
	Password string `toml:"password"`
	Addr     string `toml:"addr"`
	Interval int    `toml:"interval"`
}

func NewSmsConfig() *SmsConfig {
	return &SmsConfig{}
}

func NewEdmConfig() *EdmConfig {
	return &EdmConfig{}
}

func NewWeiXinConfig() *WeiXinConfig {
	return &WeiXinConfig{}
}
